<?php

namespace App\Http\Controllers\Configuration\Wechat;

use App\App\Services\Web\UserService;

class WebController
{
    public function form(UserService $user)
    {
        $profile = json_encode([
            'user-id'    => $user->getUserId(),
            'group-code' => $user->getGroupCode(),
        ]);

        return view('web.wechat.layout', compact('profile'));
    }
}
